package com.matongxue.springboot.user.pojo;

import java.io.Serializable;

public class ApiTestCase implements Serializable {
    private Long id;

    private String business;

    private Byte run;

    private String caseName;

    private String url;

    private String type;

    private String params;

    private String headers;

    private String jsonCorrelation;

    private String regxCorrelation;

    private Integer orderNum;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business == null ? null : business.trim();
    }

    public Byte getRun() {
        return run;
    }

    public void setRun(Byte run) {
        this.run = run;
    }

    public String getCaseName() {
        return caseName;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName == null ? null : caseName.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params == null ? null : params.trim();
    }

    public String getHeaders() {
        return headers;
    }

    public void setHeaders(String headers) {
        this.headers = headers == null ? null : headers.trim();
    }

    public String getJsonCorrelation() {
        return jsonCorrelation;
    }

    public void setJsonCorrelation(String jsonCorrelation) {
        this.jsonCorrelation = jsonCorrelation == null ? null : jsonCorrelation.trim();
    }

    public String getRegxCorrelation() {
        return regxCorrelation;
    }

    public void setRegxCorrelation(String regxCorrelation) {
        this.regxCorrelation = regxCorrelation == null ? null : regxCorrelation.trim();
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", business=").append(business);
        sb.append(", run=").append(run);
        sb.append(", caseName=").append(caseName);
        sb.append(", url=").append(url);
        sb.append(", type=").append(type);
        sb.append(", params=").append(params);
        sb.append(", headers=").append(headers);
        sb.append(", jsonCorrelation=").append(jsonCorrelation);
        sb.append(", regxCorrelation=").append(regxCorrelation);
        sb.append(", orderNum=").append(orderNum);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ApiTestCase other = (ApiTestCase) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBusiness() == null ? other.getBusiness() == null : this.getBusiness().equals(other.getBusiness()))
            && (this.getRun() == null ? other.getRun() == null : this.getRun().equals(other.getRun()))
            && (this.getCaseName() == null ? other.getCaseName() == null : this.getCaseName().equals(other.getCaseName()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getHeaders() == null ? other.getHeaders() == null : this.getHeaders().equals(other.getHeaders()))
            && (this.getJsonCorrelation() == null ? other.getJsonCorrelation() == null : this.getJsonCorrelation().equals(other.getJsonCorrelation()))
            && (this.getRegxCorrelation() == null ? other.getRegxCorrelation() == null : this.getRegxCorrelation().equals(other.getRegxCorrelation()))
            && (this.getOrderNum() == null ? other.getOrderNum() == null : this.getOrderNum().equals(other.getOrderNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBusiness() == null) ? 0 : getBusiness().hashCode());
        result = prime * result + ((getRun() == null) ? 0 : getRun().hashCode());
        result = prime * result + ((getCaseName() == null) ? 0 : getCaseName().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getHeaders() == null) ? 0 : getHeaders().hashCode());
        result = prime * result + ((getJsonCorrelation() == null) ? 0 : getJsonCorrelation().hashCode());
        result = prime * result + ((getRegxCorrelation() == null) ? 0 : getRegxCorrelation().hashCode());
        result = prime * result + ((getOrderNum() == null) ? 0 : getOrderNum().hashCode());
        return result;
    }
}